
import { SkuModel, SpuModel } from "./PropertyModel"

export interface CombinationActivityModel {
  Id?: number // 拼团活动编号
  Name?: string // 拼团名称
  SpuId?: number // 
  TotalLimitCount?: number
  SingleLimitCount?: number
  StartTime?: Date
  EndTime?: Date
  UserSize?: number
  TotalCount?: number
  SuccessCount?: number
  OrderUserCount?: number
  VirtualGroup?: number
  Status?: number
  LimitDuration?: number
  CombinationPrice?: number
  Products: CombinationProductModel[]

}


export interface CombinationProductModel {
  SpuId: number
  SkuId: number
  CombinationPrice: number // 拼团价格
}

export type SkuExtension = SkuModel & {
  ProductConfig: CombinationProductModel
}

export interface SpuExtension extends SpuModel {
  skus: SkuExtension[] // 重写类型
}